package com.geccocrawler.gecco.demo.langfang;

import com.geccocrawler.gecco.annotation.Gecco;
import com.geccocrawler.gecco.annotation.JSONPath;
import com.geccocrawler.gecco.annotation.Request;
import com.geccocrawler.gecco.annotation.RequestParameter;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.JsonBean;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: weixiaohu
 * Date: 2019/6/3
 * Time: 14:16
 */
@Getter
@Setter
@Gecco(matchUrl = "http://lfrs.zhiscity.com/Common/Get{type}?pageIndex={page}&keyWord=",
        pipelines = {"lfProcessPipeline"})
public class Results<T> implements JsonBean {
    @Request
    private HttpRequest request;
    @RequestParameter("type")
    private String type;
    @JSONPath("$.CurrentPageIndex")
    private int currentPageIndex;
    @JSONPath("$.TotalPageCount")
    private int totalPageCount;
    @JSONPath("$.List")
    private List list;
}
